find_package(OpenGL REQUIRED)
include_directories(${OpenGL_INCLUDE_DIRS})
set(LIBS ${LIBS} ${OpenGL_LIBRARIES})

find_package(GLU REQUIRED)
include_directories(${GLU_INCLUDE_DIRS})
set(LIBS ${LIBS} ${GLU_LIBRARIES})

find_package(SDL REQUIRED)
include_directories(${SDL_INCLUDE_DIRS})
set(LIBS ${LIBS} ${SDL_LIBRARIES})

link_libraries (
   ${OpenGL_LIBRARY}
   ${GLU_LIBRARY}
   ${SDL_LIBRARY}
   SDLmain # Sadly not included in SDL_LIBRARY variable
)

link_directories(${SDL_INCLUDE_DIRS} ${OpenGL_INCLUDE_DIRS} ${GLU_INCLUDE_DIRS})

set(AspectEngine_SRC
   AspectEngine.cpp
   FileHelpers.cpp
   Logger.cpp
   Math.cpp
   State.cpp
   Model.cpp
   Material.cpp
   ImageLoader.cpp
   SceneObject.cpp
   Scene.cpp
   Shader.cpp
#   Sound.cpp
#   Light.cpp
   Camera.cpp
#   File.cpp
#   IO.cpp
)

add_library(AspectEngine SHARED ${AspectEngine_SRC})

target_link_libraries (AspectEngine ${LIBS}) 